package cehadata;

import javax.swing.JDesktopPane;
import javax.swing.JInternalFrame;

public class FicheFrame extends javax.swing.JFrame {

    private final String requete;

    public FicheFrame(String requete) {
        this.requete = requete;
        initComponents();
    }

    public String getRequete() {
        return requete;
    }

    public JDesktopPane getDesktop() {
        return desktop;
    }

    public JInternalFrame getFiche() {
        return fiche;
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        desktop = new javax.swing.JDesktopPane();
        fiche = new javax.swing.JInternalFrame();
        jInternalFrame4 = new javax.swing.JInternalFrame();
        jLabel2 = new javax.swing.JLabel();
        jToolBar1 = new javax.swing.JToolBar();
        fermerButton = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        fiche.setResizable(true);
        fiche.setTitle("FICHE");
        fiche.setVisible(true);

        javax.swing.GroupLayout ficheLayout = new javax.swing.GroupLayout(fiche.getContentPane());
        fiche.getContentPane().setLayout(ficheLayout);
        ficheLayout.setHorizontalGroup(
            ficheLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 541, Short.MAX_VALUE)
        );
        ficheLayout.setVerticalGroup(
            ficheLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 655, Short.MAX_VALUE)
        );

        fiche.setBounds(20, 50, 550, 690);
        desktop.add(fiche, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jInternalFrame4.setIconifiable(true);
        jInternalFrame4.setResizable(true);
        jInternalFrame4.setTitle("APERCU");
        jInternalFrame4.setVisible(true);

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ceha/ressource/logoCEHA.jpg")));

        javax.swing.GroupLayout jInternalFrame4Layout = new javax.swing.GroupLayout(jInternalFrame4.getContentPane());
        jInternalFrame4.getContentPane().setLayout(jInternalFrame4Layout);
        jInternalFrame4Layout.setHorizontalGroup(
            jInternalFrame4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jInternalFrame4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel2)
                .addContainerGap(231, Short.MAX_VALUE))
        );
        jInternalFrame4Layout.setVerticalGroup(
            jInternalFrame4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jInternalFrame4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel2)
                .addContainerGap(270, Short.MAX_VALUE))
        );

        jInternalFrame4.setBounds(600, 200, 250, 316);
        desktop.add(jInternalFrame4, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jToolBar1.setRollover(true);

        fermerButton.setBackground(new java.awt.Color(0, 0, 0));
        fermerButton.setFont(new java.awt.Font("Times New Roman", 1, 14));
        fermerButton.setForeground(new java.awt.Color(255, 255, 255));
        fermerButton.setText("Fermer");
        fermerButton.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        fermerButton.setFocusable(false);
        fermerButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        fermerButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        fermerButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                fermerButtonActionPerformed(evt);
            }
        });
        jToolBar1.add(fermerButton);

        jToolBar1.setBounds(10, 10, 730, 30);
        desktop.add(jToolBar1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(desktop, javax.swing.GroupLayout.PREFERRED_SIZE, 930, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(desktop, javax.swing.GroupLayout.DEFAULT_SIZE, 782, Short.MAX_VALUE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void fermerButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fermerButtonActionPerformed
        this.dispose();
    }//GEN-LAST:event_fermerButtonActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JDesktopPane desktop;
    private javax.swing.JButton fermerButton;
    private javax.swing.JInternalFrame fiche;
    private javax.swing.JInternalFrame jInternalFrame4;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JToolBar jToolBar1;
    // End of variables declaration//GEN-END:variables
}
